﻿@model Model.ViewModel.PermissionViewModel

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Html.BeginForm("EditPermission", "System", FormMethod.Post))
{
    <table style="width: 100%">
        @Html.HiddenFor(m=>m.pid)
        <tr>
            <td>@Html.LabelFor(m => m.pName)</td>
            <td>@Html.TextBoxFor(m => m.pName)</td>
            <td>@Html.ValidationMessageFor(m => m.pName)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m=>m.pAreaName)</td>
            <td>@Html.TextBoxFor(m=>m.pAreaName)</td>
            <td>@Html.ValidationMessageFor(m => m.pAreaName)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pControllerName)</td>
            <td>@Html.TextBoxFor(m => m.pControllerName)</td>
            <td>@Html.ValidationMessageFor(m => m.pControllerName)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pActionName)</td>
            <td>@Html.TextBoxFor(m => m.pActionName)</td>
            <td>@Html.ValidationMessageFor(m => m.pActionName)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pParent)</td>
            <td>@Html.TextBoxFor(m => m.pParent)</td>
            <td>@Html.ValidationMessageFor(m => m.pParent)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pFormMethod)</td>
            <td>@Html.DropDownListFor(m => m.pFormMethod, ViewBag.FormMethodList as IEnumerable<SelectListItem>)</td>
            <td>@Html.ValidationMessageFor(m => m.pFormMethod)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pIsShow)</td>
            <td>@Html.TextBoxFor(m => m.pIsShow)</td>
            <td>@Html.ValidationMessageFor(m => m.pIsShow)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pOperationType)</td>
            <td>@Html.DropDownListFor(m => m.pFormMethod, ViewBag.OperationType as IEnumerable<SelectListItem>)</td>
            <td>@Html.ValidationMessageFor(m => m.pOperationType)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.pRemark)</td>
            <td>@Html.TextBoxFor(m => m.pRemark)</td>
            <td>@Html.ValidationMessageFor(m => m.pRemark)</td>
        </tr>
        
    </table>
    <input type="submit" value="Submit"/>
}
